package aop.log;

import org.springframework.aop.AfterReturningAdvice;
 //方式一：用原生spring API接口实现aop
import java.lang.reflect.Method;

public class AfterLog implements AfterReturningAdvice {
    @Override
    public void afterReturning(Object returnValue, Method method, Object[] args, Object target) throws Throwable {
      System.out.println("执行了"+method.getName()+"了方法，返回的结果为"+returnValue);
    }
}
